package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.BadnessLabourDao;
import com.site.wisdom_construction.entity.personnelModule.BadnessLabour;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/7
 * @Description
 */
@Service
public class BadnessLabourService implements BadnessLabourDao {
    @Autowired
    private BadnessLabourDao badnessLabourDao;


    @Override
    public int insertBadnessLabour(Map map) {
        return badnessLabourDao.insertBadnessLabour(map);
    }

    @Override
    public int deleteBadnessLabour(Map map) {
        return badnessLabourDao.deleteBadnessLabour(map);
    }

    @Override
    public int updateBadnessLabour(Map map) {
        return badnessLabourDao.updateBadnessLabour(map);
    }

    @Override
    public List<BadnessLabour> findBadnessLabourByPage(Map map) {
        return badnessLabourDao.findBadnessLabourByPage(map);
    }

    @Override
    public long Total(Map map) {
        return badnessLabourDao.Total(map);
    }

    @Override
    public BadnessLabour findBadnessLabourById(Map map) {
        return badnessLabourDao.findBadnessLabourById(map);
    }
}
